{template header}

    <!-- article begin -->
    <div id="article">

        <div class="post" id="post-{$result['id']}">
            <h1>{$result['title']}</h1>
            <div class="post-meta">
                <span class="post-meta-date">{echo formatDate($result['dateline'])}</span>
                <!--{if $this->sort[ $result['sid'] ]}-->
                <span class="post-meta-sort"> / <a href="{$this->sort_url( $this->sort[ $result['sid'] ] ) }">{$this->sort[$result['sid']]['title']}</a></span>
                <!--{/if}-->
                <span class="post-meta-comment"> / <a href="">评论 {$result['comments']}</a></span>
                <span class="post-meta-views"> / 被围观 <strong>{echo number_format($result['views'])}</strong>+</span>
            <!--{if $tag}-->
                <span class="post-meta-tag"> /
                <!--{loop $tag $v}-->
                <a href="{echo $this->url('tag', null, array('tag' => $v) )}" title="{$v}">{$v}</a>
                <!--{/loop}-->
                </span>
            <!--{/if}-->
            </div>
            <div class="post-entry"><img src="{$result['thumb']}" /></div>
            {$this->doAction('post')}
        </div>

        <!--{if $related = $this->get_related($tag, $result['id'])}-->
        <!-- 相关文章 开始 -->
        <div class="post related">
            <div class="related-post">
                <h1>猜您喜欢</h1>
                <!--{loop $related $v}-->
                <li><a href="{$this->archives_url($v)}" title="{$v['title']}"><img src="{$v['thumb']}" /></a></li>
                <!--{/loop}-->
            </div>
        </div>
        <!-- 相关文章 结束 -->
        <!--{/if}-->

        <!--{if $result['comments']}-->
        {eval $comments = $this->get_comment($result['id'])}
        <!--{loop $comments $k $v}-->
        <div class="comment" id="comment-{$v['id']}">
            <div class="comment-avatar"><img class="gravatar" src="{$this->gravatar($v['email']) }" /></div>
            <div class="comment-text">
                <p><b><!--{if $v['url']}--><a rel="external nofollow" target="_blank" href="{$v['url']}">{$v['author']}</a><!--{else}-->{$v['author']}<!--{/if}--></b>
                    <em class="date">{echo formatDate($v['dateline'])}</em><a class="comment-reply" lou="{echo ++$k}" href="">@说点啥</a></p>
                <p>{$v['content']}</p>
            </div>
            <div class="comment-floor">{$k}楼</div>
        </div>
        <!--{/loop}-->
        <!--{/if}-->

        <!--{if !$result['isLock'] && !$this->setting['is_comment'] }-->
        <div class="post reply" id="reply">
            <h1>说点什么</h1>
            <form action="{$this->setting['weburl']}/?c={$c}&a=add_comment" method="post">
                <input type="hidden" name="aid" value="{$result['id']}" />
                <p><input type="text" name="author" placeholder="请输入你的大名" class="author required" value="" /></p>
                <p><input type="text" name="email" placeholder="请输入E-mail" class="email required" value="" /></p>
                <p><input type="text" name="url" class="url" placeholder="有的话最好填一下啦，方便回访~" value="" /></p>
                <p><textarea rows="6" cols="50" name="content" class="textarea required"></textarea></p>
                <p style="margin-bottom: 3px;"><input type="button" value="提交评论" class="btn btn-success comment-button" /></p>
            </form>
        </div>
        <!--{/if}-->
    </div>
    <!-- article end -->

    {template sidebar}

{template footer}